/*
 * 作者: junmu
 * 时间: 2025-07-22
 */
package com.hzbc.faceattendance.service;

import com.hzbc.faceattendance.dto.PushMessageQueryRequest;
import com.hzbc.faceattendance.model.PushMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;

/**
 * 微信推送服务接口
 */
public interface IWechatPushService {
    void sendAbnormalMessage(String openId, String imageUrl, String content, String deviceName,int type,int enterStatus);

    String getAccessToken();

    // ... 其他方法不变 ...
    Page<PushMessage> findByCreateTimeBetween(Date startDate, Date endDate, Pageable pageable);

    Page<PushMessage> findByTypeAndCreateTimeBetween(Integer type, Date startDate, Date endDate, Pageable pageable);

    PushMessage findById(Long id);

    PushMessage save(PushMessage message);

    Page<PushMessage> findUnprocessedMessages(Date date, Date date1, Pageable pageable);

    Page<PushMessage> findPushMessagesByTypeAndStatus(PushMessageQueryRequest request, Pageable pageable);
}
